const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

// 配件管理路由
const routers = [
  {
    path: '/assessgrade',
    meta: {
      title: '评价信息',
      icon: 'el-icon-s-cooperation'
    },
    redirect: '/assessgrade',
    component: RouteView,
    children: [
      {
        path: '/assessgrade/grade',
        meta: {
          title: '评价信息'
        },
        redirect: '/assessgrade/grade',
        component: RouteView,
        children: [{
          path: '/assessgrade/grade/lowscore',
          meta: {
            title: '低分查询(销售)',
            keepAlive: true
          },
          component: AsyncComponent('assessgrade/grade/lowscore')
        }
        ]
      }
    ]
  }
];
export default routers;